﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Interfleet.SE.UICompiler.Core
{
    public abstract class CompileTypeBase
    {
        protected CompileTypeBase(CompileSupplier supplier, CompileEntityType entityType, bool requiresCompileOption)
        {
            EntityType = entityType;
            Supplier = supplier;
            RequiresCompileOption = requiresCompileOption;
        }

        /// <summary>
        /// <see cref="CompileEntityType"/> of this compile type
        /// </summary>
        public CompileEntityType EntityType
        {
            get;
            private set;
        }

        /// <summary>
        /// <see cref="CompileSupplier"/> of this compile type
        /// </summary>
        public CompileSupplier Supplier
        {
            get;
            private set;
        }

        /// <summary>
        /// If true this compile type requires the CompileOptionProperty to be set.
        /// </summary>
        public bool RequiresCompileOption
        {
            get;
            private set;
        }
    }
}
